package com.fenghen.system.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fenghen.common.annotation.Excel;
import com.fenghen.common.core.domain.BaseEntity;

/**
 * 风险评估与评级模块对象 risk_assessment
 * 
 * @author fenghen
 * @date 2024-11-06
 */
public class RiskAssessment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long assessmentId;

    /** 关联的风险ID */
    @Excel(name = "关联的风险ID")
    private Long riskId;

    /** 发生可能性评分 */
    @Excel(name = "发生可能性评分")
    private BigDecimal likelihoodScore;

    /** 影响评分 */
    @Excel(name = "影响评分")
    private BigDecimal impactScore;

    /** 评估后的风险等级 */
    @Excel(name = "评估后的风险等级")
    private String riskLevel;

    /** 风险识别模块信息 */
    private List<RiskIdentification> riskIdentificationList;

    public void setAssessmentId(Long assessmentId) 
    {
        this.assessmentId = assessmentId;
    }

    public Long getAssessmentId() 
    {
        return assessmentId;
    }

    public void setRiskId(Long riskId) 
    {
        this.riskId = riskId;
    }

    public Long getRiskId() 
    {
        return riskId;
    }

    public void setLikelihoodScore(BigDecimal likelihoodScore) 
    {
        this.likelihoodScore = likelihoodScore;
    }

    public BigDecimal getLikelihoodScore() 
    {
        return likelihoodScore;
    }

    public void setImpactScore(BigDecimal impactScore) 
    {
        this.impactScore = impactScore;
    }

    public BigDecimal getImpactScore() 
    {
        return impactScore;
    }

    public void setRiskLevel(String riskLevel) 
    {
        this.riskLevel = riskLevel;
    }

    public String getRiskLevel() 
    {
        return riskLevel;
    }

    public List<RiskIdentification> getRiskIdentificationList()
    {
        return riskIdentificationList;
    }

    public void setRiskIdentificationList(List<RiskIdentification> riskIdentificationList)
    {
        this.riskIdentificationList = riskIdentificationList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assessmentId", getAssessmentId())
            .append("riskId", getRiskId())
            .append("likelihoodScore", getLikelihoodScore())
            .append("impactScore", getImpactScore())
            .append("riskLevel", getRiskLevel())
            .append("riskIdentificationList", getRiskIdentificationList())
            .toString();
    }
}
